package com.wzz.seckillone.controller;


import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author jobob
 * @since 2021-10-28
 */
@RestController
@RequestMapping("/user")
public class UserController {

	@GetMapping("/test/{id}")
	public String getUser(@PathVariable("id") String id) {
		return ""+id;
	}
	
	@PostMapping("/test")
	public String test(String id){
		return "usr";
	}
}
